#include <graphics.h>
#include <conio.h>
#include <time.h>
void main(){
	srand((unsigned)time(NULL));
	initgraph(640,480);
	int x[100],y[100];
	int vx=1,vy=1;
	int radius=5;
	for(int i=0;i<100;i++){
		x[i]=rand()%640;
		y[i]=rand()%480;
	}
	BeginBatchDraw();
	while(!kbhit()){
		for(int i=0;i<100;i++){
		setcolor(BLACK);
		setfillcolor(BLACK);
		fillcircle(x[i],y[i],radius);
		y[i]+=3;
		if(y[i]>=480) y[i]=0;
		setfillcolor(WHITE);
		fillcircle(x[i],y[i],radius);	
	}
		FlushBatchDraw();
		Sleep(10);
	}
	_getch();
	closegraph();
}
